package StudyCode.summary.zipfile;

import java.io.*;
import java.util.zip.GZIPInputStream;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetsInputStreamFromFileGzipCompressed {
	public static InputStream getCompressedFileAsStream(final File file)
			throws IOException {
		return new GZIPInputStream(new BufferedInputStream(
				new FileInputStream(file)));
	}
}
